#include <cstdint>
#include <iostream>
using namespace std;

uint8_t read_byte(){
  return 0; // TODO: 读取字节数据。重用上题代码。
}

bool is_little_endian(uint32_t u, uint8_t b0, uint8_t b1, uint8_t b2, uint8_t b3){
  return false; // TODO: 判断小端序
}

bool is_big_endian(uint32_t u, uint8_t b0, uint8_t b1, uint8_t b2, uint8_t b3){
  return false; // TODO: 判断大端序
}

int main() {
  for(uint32_t u; cin >> u;){
    uint8_t b0 = read_byte();
    uint8_t b1 = read_byte();
    uint8_t b2 = read_byte();
    uint8_t b3 = read_byte();
    if(is_little_endian(u, b0, b1, b2, b3)){
      cout << "LE" << endl;
    }else if(is_big_endian(u, b0, b1, b2, b3)){
      cout << "BE" << endl;
    }else{
      cout << "UNKNOWN" << endl;
    }
  }
}